Relative Extrema And Calculus